FROM eclipse-temurin:17-jdk-alpine
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY target/*.jar app.jar
ENTRYPOINT ["java", "-jar", "-Xms1024m", "-Xmx1024m", "-Dspring.profiles.active=test", "app.jar"]